package com.xb.cloud.product.service.business.model.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xb.cloud.product.service.business.model.GroupCount;
import com.xb.cloud.product.service.business.model.ShopGroupSku;
import com.xb.cloud.product.service.business.model.ShopGroupSkuExample;

public interface ShopGroupSkuMapper {
    long countByExample(ShopGroupSkuExample example);

    int deleteByExample(ShopGroupSkuExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ShopGroupSku record);

    int insertSelective(ShopGroupSku record);

    List<ShopGroupSku> selectByExample(ShopGroupSkuExample example);

    ShopGroupSku selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ShopGroupSku record, @Param("example") ShopGroupSkuExample example);

    int updateByExample(@Param("record") ShopGroupSku record, @Param("example") ShopGroupSkuExample example);

    int updateByPrimaryKeySelective(ShopGroupSku record);

    int updateByPrimaryKey(ShopGroupSku record);
    
    /**
     * 分组，统计sku的数量 (某一个店铺)
     */
    List<GroupCount> countSaleSkuForGroups(Long shopId);
}